n,k = map(int,input().split())


sum_ = 0
for i in range(n):
    sum_ += (k*(i+1))
print(sum_)  